<?php
   include "header.html";
?>

<div class="row">   
<?php 
echo html_entity_decode($tags);
    $left = html_entity_decode($pages);
    $left = str_replace('<div class="pager fr" >','<div class="pagination"><ul>',$left) ;    
    $left = preg_replace('/<span class="page-numbers current">([0-9]*)<\/span>/i','<a href="javascript:void(0);" class="active">$1</a>',$left);
    $left = str_replace('<a','<li><a',$left);
    $left = str_replace('</a>','</a></li>',$left);
    $left = str_replace('<span class="page-numbers dots">…</span>','<li class="active"><a href="javascript:void(0);">...</a></li>',$left);
    $left = str_replace('</div>','</ul></div>',$left);

    echo $left;
 ?>
</div>


<?php 
   include "footer.html";
?>
